package practice3;

public class Subtraction extends AbstractArithmetic {
    public Subtraction(int num1, int num2) {
        super(num1, num2);
    }

    @Override
    public void calculate() {
        result = num1 - num2;
    }

    @Override
    public char getOperator() {
        return '-';
    }
}